/* eslint-disable */
// @ts-ignore
import request from '@/utils/request';
import { CustomRequestOptions } from '@/interceptors/request';

import * as API from './types';

/** 分页查询操作日志 GET /operation_log */
export async function operationLogGetOperationLogPage({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.OperationLogGetOperationLogPageParams;
  options?: CustomRequestOptions;
}) {
  return request<API.ResponseModelResponseDataListModelOperationLogModel_>(
    '/operation_log',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 查询模块名列表 GET /operation_log/module */
export async function operationLogGetModuleNameTree({
  options,
}: {
  options?: CustomRequestOptions;
}) {
  return request<API.ResponseModelListModuleNameTreeModel_>(
    '/operation_log/module',
    {
      method: 'GET',
      ...(options || {}),
    }
  );
}
